<script setup lang="ts">
const props = defineProps({
  money: Number,
  car: String
})
console.log(props.money, props.car)
// 自定义emit
const emit = defineEmits(['changMoney'])
const change = () => {
  emit('changMoney', 10)
}
</script>

<template>
  <div class="child-page">
    他是儿子
    <p>{{money}} ===  {{car}}</p>
    <button @click="change">爸爸我想花钱</button>
  </div>
</template>

<style lang="scss" scoped></style>
